<!DOCTYPE html>
<html>
  
<head>
  <meta charset="utf-8">
  <meta name="author" content="饿包子" />
  
  
  <title>sublime使用过程的相关整理 | 饿包子博客</title>

  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  
    <meta name="keywords" content="软件工具," />
  

  
  <meta name="description" content="不看不知道，欲哭又想笑。活着不容易，幽默无价宝。莫言 《生死疲劳》">

  
  
    <link rel="icon" href="/blog/images/xian.ico">
    <link rel="apple-touch-icon" href="/blog/images/Logo.png">
  

  
<link rel="stylesheet" href="/blog/css/Awesome.min.css">


  
<link rel="stylesheet" href="/blog/css/index.css">
<link rel="stylesheet" href="/blog/styles/components/highlight/highlight.css">


  
  
<script src="/blog/common/jquery.min.js"></script>

  
    
<script src="/blog/common/Av.min.js"></script>

  

  
    
<script src="/blog/common/MathJax.js"></script>

  

  
    
<script src="/blog/common/Valine.min.js"></script>

  

  

  <script>
  // theme-ad's config script
  // it can be used in every script
  
  window.AD_CONFIG = {
    leancloud: {"appid":"gE1EosDsVgB2slV4E92yPkcG-gzGzoHsz","appkey":"niR787UVTMyJQrR6gmOiJCKe","comment":true,"count":true},
    welcome: {"enable":false,"interval":30},
    start_time: "2018-06-10",
    passwords: ["a621ab606db2a11f63edc576a729843b8269250dc324206871d90635ac5e531c", ],
    is_post: true,
    lock: false,
    author: "饿包子",
    share: {"twitter":false,"facebook":false,"weibo":true,"qq":true,"wechat":false},
    mathjax: true,
    page_type: "",
    root: "/blog/"
  };
</script>

  
<script src="/blog/vendor/sha256.min.js"></script>
<script src="/blog/js/auth.js"></script>
<script src="/blog/js/index.js"></script>
<script src="/blog/vendor/qrcode.min.js"></script>


<meta name="generator" content="Hexo 5.4.2"></head>
  <body>
    <header class="site-header">
  <div class="site-header-brand">
    
      <span class="site-header-brand-title">
        <a href="/blog/">清风逐月</a>
      </span>
    
    
      <span class="site-header-brand-motto"> | 我思故我在</span>
    
  </div>
  <div class="site-header-right">
    <nav class="site-header-navigation">
      
        <a href="/blog/" target="_self">主页</a>
      
        <a href="/blog/archives/" target="_self">归档</a>
      
        <a href="/blog/tags/" target="_self">标签</a>
      
        <a href="/blog/categories/" target="_self">分类</a>
      
        <a href="/blog/categories/%E6%97%A5%E8%AE%B0" target="_self">日记</a>
      
    </nav>
    <div class="site-header-btn">
      
        <a href="https://github.com/lixianbin1/" target="_blank" id="site-github">
          <i class="fa fa-github-alt"></i>
        </a>
      
      <a href="javascript:void(0);" id="site-search">
        <i class="fa fa-search"></i>
      </a>
      <a href="javascript:void(0);" id="site-nav-btn">
        <i class="fa fa-ellipsis-v"></i>
      </a>
    </div>
  </div>
</header>
<nav class="table-content" id="site-nav">
  <div class="table-content-title">
    <span>导航</span>
  </div>
  <div class="table-content-main">
    <ol class="toc">
      
        <li class="toc-item">
          <a href="/blog/" target="_self">
            主页
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/archives/" target="_self">
            归档
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/tags/" target="_self">
            标签
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/categories/" target="_self">
            分类
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/categories/%E6%97%A5%E8%AE%B0" target="_self">
            日记
          </a>
        </li>
      
    </ol>
  </div>
</nav>
<div id="site-process"></div>
    <main>
      
  <div class="passage">
  <div class="passage-meta">
    <span>
      <i class="fa fa-calendar"></i>2022-02-17
    </span>
    
      <span>
        | <a href="/blog/categories/%E8%BD%AF%E4%BB%B6%E5%B7%A5%E5%85%B7/"><i class="fa fa-bookmark"></i>软件工具</a>
      </span>
    
    
      <span>
        | <i class="fa fa-unlock-alt"></i>UNLOCK
      </span>
    
    <span>
       | <i class="fa fa-calendar"></i>更新时间:2022-2-17 9:42 
    </span>
  </div>
  <h1 class="passage-title">
    sublime使用过程的相关整理
  </h1>
  
  <article class="passage-article">
    <p>Sublime Text 是一个文本编辑器（收费软件，可以无限期试用），同时也是一个先进的代码编辑器。Sublime Text是由程序员Jon Skinner于2008年1月份所开发出来，它最初被设计为一个具有丰富扩展功能的Vim</p>
<p>下载安装 - 初始化 - 安装插件 - 安装集成 - 配置修改</p>
<h2 id="下载安装"><a href="#下载安装" class="headerlink" title="下载安装"></a>下载安装</h2><p>推荐官网下载安装<br>官网：<a target="_blank" rel="noopener" href="https://www.sublimetext.com/">https://www.sublimetext.com/</a><br>中文网站[过时]：<a target="_blank" rel="noopener" href="https://sublimetextcn.com/">https://sublimetextcn.com/</a></p>
<h2 id="插件初始化"><a href="#插件初始化" class="headerlink" title="插件初始化"></a>插件初始化</h2><p>要是插件查询太慢，可以替换为查询网址</p>
<figure class="highlight js"><figcaption><span>首选项 ——> package-settings ——> Package Control ——> Settings</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">&quot;channels&quot;</span>:[<span class="string">&quot;https://erhan.in/channel_v3.json&quot;</span>],</span><br></pre></td></tr></table></figure>

<h2 id="安装插件"><a href="#安装插件" class="headerlink" title="安装插件"></a>安装插件</h2><figure class="highlight shell"><figcaption><span>Ctrl + Shift + P 后输入 install package</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">Emmet （语法快速补齐）</span><br><span class="line">html5 （html5语法规范）</span><br><span class="line">Babel （把ES6语法编译成ES5）</span><br><span class="line">Chinese​Localizations （汉化）</span><br><span class="line">ConvertToUTF8 （解决文本中文乱码）</span><br><span class="line">Vue Syntax Highlight   (vue代码高亮)</span><br><span class="line">sublimeLinter-jsxhint （jsx代码审查）</span><br></pre></td></tr></table></figure>

<h2 id="安装集成"><a href="#安装集成" class="headerlink" title="安装集成"></a>安装集成</h2><p>sublime merge 官网：<a target="_blank" rel="noopener" href="https://www.sublimemerge.com/">https://www.sublimemerge.com/</a><br>sublime merge是一个用于管理Git的分支集成；需要下载安装；然后配置路径；</p>
<figure class="highlight js"><figcaption><span>首选项 ——>设置</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">&quot;sublime_merge_path&quot;</span>:<span class="string">&quot;D:\\Sublime Text 3\\Sublime Merge\\sublime_merge.exe&quot;</span>,</span><br></pre></td></tr></table></figure>

<h2 id="配置修改"><a href="#配置修改" class="headerlink" title="配置修改"></a>配置修改</h2><figure class="highlight js"><figcaption><span>首选项 ——> package-settings ——> emmet ——> Key Binding</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">[&#123;</span><br><span class="line">  <span class="string">&quot;keys&quot;</span>: [<span class="string">&quot;ctrl+e&quot;</span>],</span><br><span class="line">  <span class="string">&quot;command&quot;</span>: <span class="string">&quot;emmet_expand_abbreviation&quot;</span></span><br><span class="line">&#125;,&#123;</span><br><span class="line">  <span class="string">&quot;keys&quot;</span>: [<span class="string">&quot;tab&quot;</span>],</span><br><span class="line">  <span class="string">&quot;command&quot;</span>: <span class="string">&quot;emmet_expand_abbreviation&quot;</span>,</span><br><span class="line">  <span class="string">&quot;args&quot;</span>: &#123; <span class="string">&quot;tab&quot;</span>: <span class="literal">true</span> &#125;,</span><br><span class="line">  <span class="string">&quot;context&quot;</span>: [</span><br><span class="line">    &#123; <span class="string">&quot;key&quot;</span>: <span class="string">&quot;emmet_abbreviation&quot;</span> &#125;,</span><br><span class="line">    &#123; <span class="string">&quot;key&quot;</span>: <span class="string">&quot;emmet_tab_expand&quot;</span> &#125;,</span><br><span class="line">    &#123; <span class="string">&quot;key&quot;</span>: <span class="string">&quot;num_selections&quot;</span>, <span class="string">&quot;operand&quot;</span>: <span class="number">1</span> &#125;</span><br><span class="line">  ]</span><br><span class="line">&#125;,]</span><br></pre></td></tr></table></figure>

<figure class="highlight js"><figcaption><span>首选项 ——> 设置</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">&quot;word_wrap&quot;</span>:<span class="literal">true</span>, <span class="comment">// 内容过长自动换行</span></span><br><span class="line"><span class="string">&quot;tab_size&quot;</span>:<span class="number">2</span>,     <span class="comment">// 设置默认缩进为2字节</span></span><br><span class="line"><span class="string">&quot;translate_tabs_to_spaces&quot;</span>:<span class="literal">true</span>, <span class="comment">//缩进有tab转为空格</span></span><br></pre></td></tr></table></figure>
  </article>
  <aside class="table-content" id="site-toc">
  <div class="table-content-title">
    <i class="fa fa-arrow-right fa-lg" id="site-toc-hide-btn"></i>
    <span>目录</span>
  </div>
  <div class="table-content-main">
    <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%B8%8B%E8%BD%BD%E5%AE%89%E8%A3%85"><span class="toc-text">下载安装</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%8F%92%E4%BB%B6%E5%88%9D%E5%A7%8B%E5%8C%96"><span class="toc-text">插件初始化</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E6%8F%92%E4%BB%B6"><span class="toc-text">安装插件</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E9%9B%86%E6%88%90"><span class="toc-text">安装集成</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E9%85%8D%E7%BD%AE%E4%BF%AE%E6%94%B9"><span class="toc-text">配置修改</span></a></li></ol>
  </div>
</aside>

  
  
  
</div>

    </main>
    
    
<div class="site-footer-wrapper">
<!--
  <div class="footer-top">
    <a class="left" href="/blog/2022/03/01/%E3%80%90%E8%BD%AC%E8%BD%BD%E3%80%91%E4%BD%A0%E4%BC%9A%E7%94%A8ES6%EF%BC%8C%E9%82%A3%E5%80%92%E6%98%AF%E7%94%A8%E5%95%8A/" data-enable="true">
      <i class="fa fa-arrow-left"></i>
    </a>
    <a class="right" href="/blog/2022/02/11/%E5%8A%9F%E8%83%BD%E4%B8%8E%E6%A0%B7%E5%BC%8F%E7%9A%84%E5%8F%82%E8%80%83%E5%92%8C%E6%B2%89%E6%B7%80%E4%BB%A3%E7%A0%81/" data-enable="true">
      <i class="fa fa-arrow-right"></i>
    </a>
  </div>
-->
  <footer class="site-footer">
    
      
        <div class="site-footer-col">
          <h5 class="site-footer-title">网站推荐</h5>
          
            <span class="site-footer-item">
              <a href="https://tympanus.net/codrops/" target="_blank">Codrops</a>
            </span>
          
            <span class="site-footer-item">
              <a href="http://taobaofed.org/" target="_blank">淘宝前端团队(FED)</a>
            </span>
          
        </div>
      
        <div class="site-footer-col">
          <h5 class="site-footer-title">文档教程</h5>
          
            <span class="site-footer-item">
              <a href="https://es6.ruanyifeng.com/" target="_blank">ES6入门</a>
            </span>
          
            <span class="site-footer-item">
              <a href="https://developer.mozilla.org/zh-CN/docs/Web" target="_blank">MDN Web文档</a>
            </span>
          
        </div>
      
        <div class="site-footer-col">
          <h5 class="site-footer-title">兴趣前沿</h5>
          
            <span class="site-footer-item">
              <a href="https://threejs.org/" target="_blank">threejs</a>
            </span>
          
            <span class="site-footer-item">
              <a href="https://github.com/justadudewhohacks/face-api.js" target="_blank">face-api</a>
            </span>
          
        </div>
      
    
    <div class="site-footer-info">
      <i class="fa fa-clock-o"></i> 本站已稳定运行<span id="site-time"></span>
    </div>
    
      <div class="site-footer-info">
        <i class="fa fa-paw"></i> 您是本站第 <span id="site-count"></span> 位访客
      </div>
    
    
      <div class="site-footer-info">
        <i class="fa fa-at"></i> Email: xianbin.me@qq.com
      </div>
    
<!--     <div class="site-footer-info">
      <i class="fa fa-copyright"></i> 
      2019 <a href="https://github.com/dongyuanxin/theme-ad/" target="_blank">Theme-AD</a>.
      Created by <a href="https://godbmw.com/" target="_blank">GodBMW</a>.
      All rights reserved.
    </div> -->
  </footer>
</div>
    <div id="site-layer" style="display:none;">
  <div class="site-layer-content">
    <div class="site-layer-header">
      <span class="site-layer-header-title" id="site-layer-title"></span>
      <i class="fa fa-close" id="site-layer-close"></i>
    </div>
    <div class="site-layer-body" id="site-layer-container">
      <div class="site-layer-input" id="site-layer-search" style="display: none;">
        <input type="text">
        <i class="fa fa-search"></i>
      </div>
      
        <div class="site-layer-reward" id="site-layer-reward" style="display: none;">
          
            <div>
              <img src="/blog/images/wechat.png" alt="WeChat">
              
                <p>WeChat</p>
              
            </div>
          
            <div>
              <img src="/blog/images/alipay.png" alt="AliPay">
              
                <p>AliPay</p>
              
            </div>
          
        </div>
      
      <div id="site-layer-welcome" style="display:none;"></div>
    </div>
  </div>
</div>
    

<div class="bottom-bar">

  <div class="bottom-bar-left">
<!--
    <a href="/blog/2022/03/01/%E3%80%90%E8%BD%AC%E8%BD%BD%E3%80%91%E4%BD%A0%E4%BC%9A%E7%94%A8ES6%EF%BC%8C%E9%82%A3%E5%80%92%E6%98%AF%E7%94%A8%E5%95%8A/" data-enable="true">
      <i class="fa fa-arrow-left"></i>
    </a>
    <a href="/blog/2022/02/11/%E5%8A%9F%E8%83%BD%E4%B8%8E%E6%A0%B7%E5%BC%8F%E7%9A%84%E5%8F%82%E8%80%83%E5%92%8C%E6%B2%89%E6%B7%80%E4%BB%A3%E7%A0%81/" data-enable="true">
      <i class="fa fa-arrow-right"></i>
    </a>
-->
  </div>

  
  
  
  <div class="bottom-bar-right">
    <a href="javascript:void(0);" data-enable="true" id="site-toc-show-btn">
      <i class="fa fa-bars"></i>
    </a>
    
      <a href="#site-comment" data-enable="true">
        <i class="fa fa-commenting"></i>
      </a>
    
    <a href="javascript:void(0);" id="site-toggle-share-btn">
      <i class="fa fa-share-alt"></i>
    </a>
    
    <a href="javascript:void(0);" id="back-top-btn">
      <i class="fa fa-chevron-up"></i>
    </a>
  </div>
</div>
    <div id="share-btn">
  
  
  
    <a id="share-btn-weibo" href="javascript:void(0);" target="_blank">
      <i class="fa fa-weibo"></i>
    </a>
  
  
    <a id="share-btn-qq" href="javascript:void(0);" target="_blank">
      <i class="fa fa-qq"></i>
    </a>
  
  
</div>
    





    
  </body>
</html>